/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED0_Pin GPIO_PIN_3
#define LED0_GPIO_Port GPIOA
#define LED2_Pin GPIO_PIN_4
#define LED2_GPIO_Port GPIOA
#define LED1_Pin GPIO_PIN_5
#define LED1_GPIO_Port GPIOA
#define ENCODER1_A_Pin GPIO_PIN_6
#define ENCODER1_A_GPIO_Port GPIOA
#define ENCODER1_B_Pin GPIO_PIN_7
#define ENCODER1_B_GPIO_Port GPIOA
#define EXT2_Pin GPIO_PIN_5
#define EXT2_GPIO_Port GPIOC
#define EXTI1_Pin GPIO_PIN_0
#define EXTI1_GPIO_Port GPIOB
#define ROS2_RX_Pin GPIO_PIN_7
#define ROS2_RX_GPIO_Port GPIOE
#define ROS2_TX_Pin GPIO_PIN_8
#define ROS2_TX_GPIO_Port GPIOE
#define ENCODER2_A_Pin GPIO_PIN_9
#define ENCODER2_A_GPIO_Port GPIOE
#define ENCODER2_B_Pin GPIO_PIN_11
#define ENCODER2_B_GPIO_Port GPIOE
#define CHANGE_VENUES_PIN_Pin GPIO_PIN_12
#define CHANGE_VENUES_PIN_GPIO_Port GPIOE
#define RESTART_PIN_Pin GPIO_PIN_13
#define RESTART_PIN_GPIO_Port GPIOE
#define AUTO_PARK_PIN_Pin GPIO_PIN_14
#define AUTO_PARK_PIN_GPIO_Port GPIOE
#define START_PIN_Pin GPIO_PIN_15
#define START_PIN_GPIO_Port GPIOE
#define DT35_1_SCL_Pin GPIO_PIN_10
#define DT35_1_SCL_GPIO_Port GPIOB
#define DT35_1_SDA_Pin GPIO_PIN_11
#define DT35_1_SDA_GPIO_Port GPIOB
#define RS485_1_DE_Pin GPIO_PIN_14
#define RS485_1_DE_GPIO_Port GPIOB
#define RS485_1_TX_Pin GPIO_PIN_8
#define RS485_1_TX_GPIO_Port GPIOD
#define RS485_1_RX_Pin GPIO_PIN_9
#define RS485_1_RX_GPIO_Port GPIOD
#define GYRO_TX_Pin GPIO_PIN_6
#define GYRO_TX_GPIO_Port GPIOC
#define GYRO_RX_Pin GPIO_PIN_7
#define GYRO_RX_GPIO_Port GPIOC
#define DT35_2_SDA_Pin GPIO_PIN_9
#define DT35_2_SDA_GPIO_Port GPIOC
#define DT35_2_SCL_Pin GPIO_PIN_8
#define DT35_2_SCL_GPIO_Port GPIOA
#define EXTI1_O_Pin GPIO_PIN_15
#define EXTI1_O_GPIO_Port GPIOA
#define DT35_3_SDA_Pin GPIO_PIN_10
#define DT35_3_SDA_GPIO_Port GPIOC
#define DT35_3_SCL_Pin GPIO_PIN_11
#define DT35_3_SCL_GPIO_Port GPIOC
#define RS485_2_DE_Pin GPIO_PIN_4
#define RS485_2_DE_GPIO_Port GPIOD
#define RS485_2_TX_Pin GPIO_PIN_5
#define RS485_2_TX_GPIO_Port GPIOD
#define RS485_2_RX_Pin GPIO_PIN_6
#define RS485_2_RX_GPIO_Port GPIOD

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
